package com.example.heimashop.model;

/**
 * 订单商品实体类
 */
public class OrderGoods {
    private int id;
    private int orderId;        // 关联的订单ID
    private int goodsId;        // 商品ID
    private String goodsName;   // 商品名称
    private double goodsPrice;  // 商品价格
    private String goodsImage;  // 商品图片
    private int goodsCount;     // 商品数量

    public OrderGoods() {
    }

    public OrderGoods(int orderId, int goodsId, String goodsName, double goodsPrice,
                      String goodsImage, int goodsCount) {
        this.orderId = orderId;
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
        this.goodsImage = goodsImage;
        this.goodsCount = goodsCount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsImage() {
        return goodsImage;
    }

    public void setGoodsImage(String goodsImage) {
        this.goodsImage = goodsImage;
    }

    public int getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(int goodsCount) {
        this.goodsCount = goodsCount;
    }
}
